package com.yc.service.impl;

import com.yc.common.ResponseResult;
import com.yc.entity.article.ArticlePo;
import com.yc.mapper.ArticleMapper;
import com.yc.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticleServiceImpl implements ArticleService {
    @Autowired
    private ArticleMapper articleMapper;
    @Override
    public ResponseResult findAll() {
        List<ArticlePo> articles = articleMapper.selectList(null);
        return ResponseResult.okResult(articles);
    }
}
